import request from '@/utils/request'

// 滚筒线任务
export function getRollerLineTaskListAPI(data) {
  return request({
    url: 'wcsApi/wcsQuery/queryRollerConveyorTask',
    method: 'post',
    data
  })
}

export function forceEndAPI(data) {
  return request({
    url: 'wcsApi/wcs/rollerConveyorForceTerminate',
    method: 'post',
    data
  })
}

// 堆垛机任务
export function getStackerCraneTaskListAPI(data) {
  return request({
    url: 'wcsApi/wcsQuery/queryStackerTask',
    method: 'post',
    data
  })
}

export function forceStackerEndAPI(data) {
  return request({
    url: 'wcsApi/wcs/stackerTaskForceTerminate',
    method: 'post',
    data
  })
}

// PLC错误日志
export function getPlcLogListAPI(data) {
  return request({
    url: 'wcsApi/wcsQuery/queryPLCErrorInfo',
    method: 'post',
    data
  })
}
